<ul id="${id}" name="${id}" style="padding: 0;width: 100%;font-size: 16px">
    @for(item in list){
    <div style="display: none">
        <p style="background-color: palegreen;font-weight: bold;padding-left: 10px"
           value="${item.getTime}">${item.getTime}</p>
    </div>
    <li value="${item.customerId}"
        style="width: 80%;background-color: #f0eccf;box-shadow: 5px 5px 10px #888888;margin-bottom: 20px">
        <p style="background-color: palegreen;font-weight: bold;padding-left: 10px"
           value="${item.operationTime}">${item.operationTime}</p>
        <div value="${item.operationTime}"></div>
    </li>
    <script>
        $.ajax({
            url: Feng.ctxPath + "/consultant/getOpenBillListd",
            type: "post",
            data: {
                "operationTime": $("p[value='${item.operationTime}']").text(),
                "customerId": $("#customerId").val(),
                "getTime":  $("p[value='${item.getTime}']").text(),
                "reservationsId": $("#reservationsId").val(),
                "filterMoney":"1"
            },
            success: function (data) {
                var s1 = '';
                var ss = "";
                var sss = "";
                for (var i = 0; i < data.length; i++) {
                    ss += ' <div class="data_row" style="margin-top: 5px;margin-bottom: 20px">' +
                        '                <div style=\"padding-left: 10px;width: 120px;display: inline-block;\">\n' +
                        '                    <div style=\"border-bottom: 1px solid;\">\n' +
                        '                        <div style=\"font-size: 12px;display: inline-block;width:55px;border-right: 1px solid black;text-align: right;height: 22px;margin-bottom: -5px;"  id=\"yw_left_top\">' + data[i].leftUp + '</div><!--\n' +
                        '                         --><div style=\"font-size: 12px;display: inline-block;width:55px;\" id=\"yw_right_top\">' + data[i].rightUp + '</div>\n' +
                        '                   </div>\n' +
                        '                    <div>\n' +
                        '                        <div style=\"font-size: 12px;display: inline-block;width:55px;border-right: 1px solid black;text-align: right;height: 22px;margin-bottom: -5px;"  id=\"yw_left_bottom\">' + data[i].leftDown + '</div><!--\n' +
                        '                         --><div style=\"font-size: 12px;display: inline-block;width:55px;\" id=\"yw_right_bottom\">' + data[i].rightDown + '</div>\n' +
                        '                   </div>\n' +
                        '                </div>\n' +
//                        '' + data[i].department + '&nbsp&nbsp' + data[i].firstLevelProject + '' +
                        '&nbsp&nbsp' + data[i].payServiceName + '&nbsp&nbsp' + data[i].payServiceNum + '&nbsp&nbsp<span style="font-weight: bold;font-size: 18px">' + data[i].payService.toFixed(2) + '元&nbsp医生:'+data[i].doctor+'</span>&nbsp&nbsp欠款：<span class="arrears" id="qian_'+data[i].id+'" style="font-weight: bold;font-size: 18px">' + data[i].arrears.toFixed(2) + '</span>&nbsp&nbsp 补欠款:<input class="headimage" value="0" id="'+data[i].id+'" type="number"/>'+
                        '</div>';
                    sss +=' <div class="data_row" style="margin-top: 18px;margin-bottom: 20px">' +
                        '&nbsp&nbsp' + data[i].department + '&nbsp&nbsp' + data[i].firstLevelProject + '&nbsp&nbsp </div>';
                }
                if ((data[data.length - 1].dealStatus) == "已成交" && (data[data.length - 1].reservationsId) == $("#reservationsId").val()) {
                    s1 += ' &nbsp&nbsp付款 <span style="font-weight: bold;font-size: 18px">' + data[data.length - 1].totleServiceActualPay + '</span>元&nbsp&nbsp欠款 <span id="payMoneys" style="font-weight: bold;font-size: 18px">' + data[data.length - 1].accountArrears + '</span>元&nbsp&nbsp成交状态：' + data[data.length - 1].dealStatus + '';
                    s1 += '&nbsp&nbsp</div>';
                    $("div[value='${item.operationTime}']").html(s1 + ss + '<div class="rows"> &nbsp&nbsp门诊：' + data[data.length - 1].outpatientName + '&nbsp病历号：' + data[data.length - 1].medicalRecordNumber + '&nbsp ' +
                        '姓名：' + data[data.length - 1].customerName + '&nbsp 性别：' + data[data.length - 1].sex + ' &nbsp年龄：' + data[data.length - 1].customerAge + '&nbsp电话：' + data[data.length - 1].customerPhone + '&nbsp现场TC：' + data[data.length - 1].fieldTc + '</div>');
                }
            },
            error: function (data) {
                //<a href=\"javascript:;\" style="color: #d86993;" onclick="payQianKuan(\'' + data[data.length - 1].customerId + '\',\'' + data[data.length - 1].reservationsId + '\',\'' + data[data.length - 1].operationTime +'\')">&nbsp&nbsp;补欠款</a>
                alert('内部故障!');
            }
        });
    </script>
    @}
</ul>
@if(isNotEmpty(underline) && underline == 'true'){
<div class="hr-line-dashed"></div>
@}


